package com.xyzh.application.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author JZB
 * @ClassName ApplicationInfo
 * @date 2023年11月23日 17:53
 * @Description
 */
@Data
@Component
@ConfigurationProperties(prefix = "application")
public class ApplicationProperies {


    private Info info=new Info();
    private  Authoration  authoration=new Authoration();

    @Data
    public static class Info {
        private String adminCode = "sysadmin";
        private String guestCode = "guest";
        private String appName = "安居后台";
    }
    @Data
    public static class Authoration{

      private String  url= "http://127.0.0.1:${server.port}/oauth/token";
      private String  clientId= "lhclient";
      private String  clientSecret= "xiaobao";
      private String  scope= "all";
      private String  grantType= "password";
    }
}
